package kr.hkit.powerjava.chapter22;

public class OrderPair<K, V> implements Pair<K, V> {
	private K key;
	private V value;
	
	//pair라는 인터페이스에 정의된 메서드!
	@Override
	public K getkey() {

		return key;
	}

	@Override
	public V getvalue() {
		
		return value;
	}

	public OrderPair(K key, V value) {
		//super();
		this.key = key;
		this.value = value;
	}

}
